﻿using System.Collections.Generic;
using System.Diagnostics;

namespace System
{
  [DebuggerStepThrough]
  public static class RandomExtensions
  {
    public static T OneOf<T>(this Random rng, IList<T> things)
    {
      return things[rng.Next(things.Count)];
    }
  }
}